<?php
/**
 * Created by JetBrains PhpStorm.
 * User: leon
 * Date: 11/20/12
 * Time: 7:23 PM
 * To change this template use File | Settings | File Templates.
 */

namespace BWL\webshopBundle\Entity;

use Doctrine\ORM\Mapping as ORM;


/**
 * @ORM\Entity
 * @ORM\Table(name="orderstatus")
 */
class OrderState
{
  /**
   * @ORM\Id
   * @ORM\Column(type="string", length=50)
   */
  protected $name;

  /**
   * @ORM\Column(type="string", length=255)
   */
  protected $description;

  /**
   * @ORM\OneToMany(targetEntity="Ordering", mappedBy="state")
   */
  protected $orderings;

  public function getOrderings(){
    return $this->orderings;
  }

  public function setDescription($description) {
    $this->description = $description;
  }

  public function getDescription() {
    return $this->description;
  }

  public function setName($name) {
    $this->name = $name;
  }

  public function getName() {
    return $this->name;
  }


}
